import React from 'react';
import DataService from './DataService.js';

class UserMessage extends React.Component{

	constructor(props){
		super(props);
		this.user = {};
	}
	componentDidMount(){
		this.user = DataService.getInstance().getUserService().getUserById(1001);
		this.setState({});
		console.log("UserMessage:user reload");
	}
	render(){
		return (
				<div>
					user.firstName:{this.user.firstName}
				</div>
			);
	}
}
export default UserMessage;